const {
  validateUserNameFn,
  validatePassWordFn,
  validateEmailFn,
  validateTelFn
} = require('../utils/validateFn')

// 用户信息配置
module.exports = [
  {
    key: "username",
    name: "用户名",
    requireIS: true,
    count: 10,
    validateFn: validateUserNameFn,
  },
  {
    key: "password",
    name: "密码",
    requireIS: true,
    count: 10,
    validateFn: validatePassWordFn,
  },
  {
    key: "email",
    name: "邮箱",
    requireIS: true,
    count: null,
    validateFn: validateEmailFn
  },
  {
    key: "telephone",
    name: "手机号",
    requireIS: true,
    count: null,
    validateFn: validateTelFn
  },
];
